package com.cangmaomao.m_mePen.api

import com.cangmaomao.m_mePen.bean.Login
import io.reactivex.Observable
import retrofit2.http.*

interface ConfigApi {

    //登录
    @POST("login")
    fun login(@Body map: Map<String, String>): Observable<Login>

    //注册
    @POST("user/register")
    fun register(@Body map: Map<String, String>): Observable<Login>

    //获取验证码
    @GET("user/regCode")
    fun verificationCode(@Query("mobile") phone: String): Observable<Login>


}